package com.catsic.practice.mapper;

import com.catsic.practice.entity.LeaveApplicationEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface LeaveApplicationRepository extends JpaRepository<LeaveApplicationEntity, Long> {

    Optional<LeaveApplicationEntity> findByProcessInstanceId(String processInstanceId);

    List<LeaveApplicationEntity> findByApplyUser(String applyUser);

    List<LeaveApplicationEntity> findByStatus(String status);
}
